import { ActionContext } from 'vuex'
import * as $api from '@/api/system'
import * as $model from '@/api/model/systemModel'
import { IStore } from '../types'
import { companyList, companyNameList, companySave } from '@/api/account'
export type IAccountState = {}

const state = {}

const mutations = {}

const actions = {
  async companySave({}: ActionContext<IAccountState, IStore>, params: any) {
    return await companySave(params)
  },
  async companyNameList({}: ActionContext<IAccountState, IStore>) {
    return await companyNameList()
  },
  async companyList({}: ActionContext<IAccountState, IStore>, params: any) {
    return await companyList(params)
  }
}

export default {
  namespaced: true,
  state,
  mutations,
  actions
}
